package com.walle.concurrenttest;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest
 * @Description: ${todo}
 * @date 2019/2/18 9:51
 */
public class BankTest {

    public static void main(String[] args) {
        Bank bank = new Bank(101,"中国工商银行");
        Thread t1 = new Thread(new BankThread(bank));
        Thread t2 = new Thread(new BankThread(bank));

        t1.setName("t1");
        t2.setName("t2");

        t1.start();
        t2.start();
    }
}
